package com.abc.service.impl;

import com.abc.dao.UploadMapper;
import com.abc.entity.Upload;
import com.abc.service.UploadService;
import com.baomidou.mybatisplus.plugins.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UploadServiceImpl implements UploadService {

    @Autowired
    UploadMapper uploadMapper;

    @Override
    public Page<Upload> queryUploadListPage(Page page, Upload upload) {
        page.setRecords(uploadMapper.queryUpload(page, upload));
        return page;
    }

    @Override
    public Page<Upload> selectImageListPage(Page page) {
        page.setRecords(uploadMapper.selectImageList(page));
        return page;
    }
}
